package com.mvc.base.model;

import javax.persistence.Entity;

import com.mvc.ProjectUtils;

/**
 * 
 * @author snowpbx
 * @version V1.0 Create Time: 2012-10-5
 */
@Entity(name = "B_COMPANY")
public class Company extends BaseGroup {
	private String	officialSeal;
	private String	financeSeal;
	private String	contractSeal;
	private String	logo;

	public String getOfficialSeal() {
		return officialSeal;
	}

	public void setOfficialSeal(String officialSeal) {
		this.officialSeal = officialSeal;
	}

	public String getFinanceSeal() {
		return financeSeal;
	}

	public void setFinanceSeal(String financeSeal) {
		this.financeSeal = financeSeal;
	}

	public String getContractSeal() {
		return contractSeal;
	}

	public void setContractSeal(String contractSeal) {
		this.contractSeal = contractSeal;
	}

	public String getLogo() {
		if (logo == null) {
			return "logo-middle.jpg";
		}
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public String getNo() {
		return ProjectUtils.toNo("", getObjectId());
	}
}
